﻿using System;
using System.Collections.Generic;
using System.Text;
using Terralever.Facebook.UI.FbmlControls;
using System.Globalization;

namespace Terralever.Facebook.UI.Design.FbmlControls
{
    public class FbmlButtonDesigner : FbmlControlDesigner
    {
        private const string BUTTON_HTML = @"<input type=""button"" value=""{0}"" style=""padding: 3px 6px 3px 8px; background: transparent url(http://www.facebook.com/images/ui/UILinkButton_Blue.png) no-repeat scroll left top; border: 0px none; color: white; display: block; float: left; font-size: 11px; font-weight: bold; height: 22px; margin: 0px; line-height: normal;"" />";

        protected FbmlButtonBase Control
        {
            get { return Component as FbmlButtonBase; }
        }

        public override string GetDesignTimeHtml()
        {
            return string.Format(CultureInfo.InvariantCulture, BUTTON_HTML, Control.Text);
        }
    }
}
